package com.yang.service.impl;

import com.yang.mapper.AgeMapper;
import com.yang.pojo.Age;
import com.yang.service.AgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgeServiceImpl implements AgeService {
    @Autowired
    private AgeMapper ageMapper;
    @Override
    public List<Age> allAge() {
        List<Age> ages = ageMapper.allAge();
        return ages;
    }
}
